package zom.zenjava.zendeploy.util;

public class ArchiveUnzipUpdate
{
    private ArchiveUnzipper unzipper;
    private String currentFile;
    private long currentFileBytesReadSoFar;
    private long currentFileTotalBytes;
    private int filesUnzippedSoFar;
    private int totalFilesToUnzip;

    public ArchiveUnzipUpdate(ArchiveUnzipper unzipper,
                              String currentFile,
                              long currentFileBytesReadSoFar,
                              long currentFileTotalBytes,
                              int filesUnzippedSoFar,
                              int totalFilesToUnzip)
    {
        this.unzipper = unzipper;
        this.currentFile = currentFile;
        this.currentFileBytesReadSoFar = currentFileBytesReadSoFar;
        this.currentFileTotalBytes = currentFileTotalBytes;
        this.filesUnzippedSoFar = filesUnzippedSoFar;
        this.totalFilesToUnzip = totalFilesToUnzip;
    }

    public ArchiveUnzipper getUnzipper()
    {
        return unzipper;
    }

    public String getCurrentFile()
    {
        return currentFile;
    }

    public long getCurrentFileBytesReadSoFar()
    {
        return currentFileBytesReadSoFar;
    }

    public long getCurrentFileTotalBytes()
    {
        return currentFileTotalBytes;
    }

    public int getFilesUnzippedSoFar()
    {
        return filesUnzippedSoFar;
    }

    public int getTotalFilesToUnzip()
    {
        return totalFilesToUnzip;
    }
}
